﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ScanningModule
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void groupBox1_Enter(object sender, EventArgs e)
        {

        }

        private void groupBox2_Enter(object sender, EventArgs e)
        {

        }

        private void BarCode_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                MessageBox.Show("Enter");
            }
        }

        private void radioButtonBarCode_CheckedChanged(object sender, EventArgs e)
        {
            if (this.radioButtonBarCode.Checked == true)
            {
                this.textBoxBarCode.Focus();
            }
        }

        private void textBoxBarCode_TextChanged(object sender, EventArgs e)
        {
            this.radioButtonBarCode.Checked = true;
            this.textBoxBarCode.Focus();
            
        }

        private void Form1_Load(object sender, EventArgs e)
        {                 
                this.textBoxBarCode.Focus();            
        }
    }
}
